#include<stdbool.h>
#include<string.h>
bool areAlmostEqual(char *s1, char *s2)
{
    int a = 0, b = 0;
    int i;

    if (!strcmp(s1, s2))
        return true;

    for (i = 0; s1[i] != '\0'; i++)
    {
        if (s1[i] != s2[i])
        {
            if (a == s1[i] && b == s2[i])
            {
                a = -1;
            }
            else if (a == 0)
            {
                a = s2[i];
                b = s1[i];
            }
            else
            {
                return false;
            }
        }
    }
    return a < 0;
}